<template>
  <div>
    <div class="mb-2 items-start gap-3 rounded-xl bg-white/7 p-4">
      <h4>点击复制图标复制</h4>
      <TCopy class="size-8 rounded-2 bg-black/70" source="普通复制" />

      <h4 class="mt-8">
        父级触发复制
      </h4>
      <AButton class="ant-cover__Button-3d-primary w-50" type="primary">
        <TCopy source="父级触发复制" :nthParent="1" />
      </AButton>

      <h4 class="mt-8 w-fit" data-copy-title>
        任何元素触发复制（点击标题触发复制）
      </h4>
      <AButton class="ant-cover__Button-3d-primary" type="primary">
        <TCopy source="任何元素触发复制" trigger="h4[data-copy-title]" />
      </AButton>
    </div>
  </div>
</template>
